/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bllInterface;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author Mrkupi
 */
public interface iChatUser extends Remote
{
    void onHasMessage(ChatMessage messsage) throws RemoteException;
    void onHasVoice(String sender, String receiver, byte[] pack) throws RemoteException;
    void onHasKey( String sender ) throws RemoteException;
    
    String getChatID() throws RemoteException;
    String getName() throws RemoteException;
    
    void addListener(iChatUserListener listener) throws RemoteException;
    void removeListener(iChatUserListener listener) throws RemoteException;
    
    boolean isBoss( String receiver ) throws RemoteException;
    void setBoss( String sender, boolean isBoss ) throws RemoteException;
}